home *** CD-ROM | disk | FTP | other *** search
- hit = false;
- if(this.hitTest(_root.s.pohyb.laser.n1._x,_root.s.pohyb.laser.n1._y,true))
- {
- hit = true;
- _root.s.pohyb.laser.sNum -= 1;
- _root.s.pohyb.laser.n1.num = 0;
- _root.s.pohyb.laser.n1._x = -500;
- }
- if(this.hitTest(_root.s.pohyb.laser.n2._x,_root.s.pohyb.laser.n2._y,true))
- {
- hit = true;
- _root.s.pohyb.laser.sNum -= 1;
- _root.s.pohyb.laser.n2.num = 0;
- _root.s.pohyb.laser.n2._x = -500;
- }
- if(this.hitTest(_root.s.pohyb.laser.n3._x,_root.s.pohyb.laser.n3._y,true))
- {
- hit = true;
- _root.s.pohyb.laser.sNum -= 1;
- _root.s.pohyb.laser.n3.num = 0;
- _root.s.pohyb.laser.n3._x = -500;
- }
- if(this.hitTest(_root.s.pohyb.laser.n4._x,_root.s.pohyb.laser.n4._y,true))
- {
- hit = true;
- _root.s.pohyb.laser.sNum -= 1;
- _root.s.pohyb.laser.n4.num = 0;
- _root.s.pohyb.laser.n4._x = -500;
- }
- if(this.hitTest(_root.s.pohyb.laser.n5._x,_root.s.pohyb.laser.n5._y,true))
- {
- hit = true;
- _root.s.pohyb.laser.sNum -= 1;
- _root.s.pohyb.laser.n5.num = 0;
- _root.s.pohyb.laser.n5._x = -500;
- }
- if(this.hitTest(_root.s.pohyb.laser.n6._x,_root.s.pohyb.laser.n6._y,true))
- {
- hit = true;
- _root.s.pohyb.laser.sNum -= 1;
- _root.s.pohyb.laser.n6.num = 0;
- _root.s.pohyb.laser.n6._x = -500;
- }
- if(this.hitTest(_root.s.pohyb.laser.n7._x,_root.s.pohyb.laser.n7._y,true))
- {
- hit = true;
- _root.s.pohyb.laser.sNum -= 1;
- _root.s.pohyb.laser.n7.num = 0;
- _root.s.pohyb.laser.n7._x = -500;
- }
- if(this.hitTest(_root.s.pohyb.laser.n8._x,_root.s.pohyb.laser.n8._y,true))
- {
- hit = true;
- _root.s.pohyb.laser.sNum -= 1;
- _root.s.pohyb.laser.n8.num = 0;
- _root.s.pohyb.laser.n8._x = -500;
- }
- if(this.hitTest(_root.s.pohyb.laser.n9._x,_root.s.pohyb.laser.n9._y,true))
- {
- hit = true;
- _root.s.pohyb.laser.sNum -= 1;
- _root.s.pohyb.laser.n9.num = 0;
- _root.s.pohyb.laser.n9._x = -500;
- }
- if(this.hitTest(_root.s.pohyb.laser.n10._x,_root.s.pohyb.laser.n10._y,true))
- {
- hit = true;
- _root.s.pohyb.laser.sNum -= 1;
- _root.s.pohyb.laser.n10.num = 0;
- _root.s.pohyb.laser.n10._x = -500;
- }
- if(hit)
- {
- gotoAndPlay(3);
- }
-